/**
 * Project Name:dsrs-businessservice-domain
 * File Name:FtpSettingVo.java
 * Package Name:com.bwda.dsrs.businessservice.domain.vo.ftpsetting;
 * Date:2019年4月28日
 * Copyright (c) 2019, 江苏保旺达软件有限公司 All Rights Reserved.
 *
 */
package com.bwda.dsrs.filecenter.domain.vo.ftpsetting;

import java.math.BigDecimal;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * FTP配置
 *
 * @author liangjianyong
 * @date 2019/4/27
 */
@Data
@ApiModel(description = "FTP配置")
public class FtpSettingVo {

	@ApiModelProperty(value = "ID", required = true)
	private Integer id;

	@ApiModelProperty(value = "名称")
	private String name;

	@ApiModelProperty(value = "0内部1外接")
	private Integer isOutFtp;

	@ApiModelProperty(value = "0主FTP,1备FTP")
	private Integer isMainFtp;

	@ApiModelProperty(value = "主FTP ID(仅当当前是备FTP)")
	private Integer mainId;

	@ApiModelProperty(value = "主FTP名称（仅当当前是主FTP）")
	private String mainName;

	@ApiModelProperty(value = "IP地址")
	private String ipAddr;

	@ApiModelProperty(value = "端口号")
	private Integer port;

	@ApiModelProperty(value = "ftp,sftp  0:ftp  1:sftp")
	private Integer ftpType;

	@ApiModelProperty(value = "用户编码")
	private String userCode;

	@ApiModelProperty(value = "密码")
	private String password;

	@ApiModelProperty(value = "模式")
	private Integer ftpMode;

	@ApiModelProperty(value = "语言编码")
	private String unicode;

	@ApiModelProperty(value = "备注")
	private String remark;

	@ApiModelProperty(value = "硬盘可用总空间")
	private BigDecimal diskSize;

	@ApiModelProperty(value = "已用硬盘空间")
	private BigDecimal usedDiskSize;

	@ApiModelProperty(value = "0正常 1不启用")
	private Integer status;

	@ApiModelProperty(value = "优先级排序")
	private Integer orderNum;

	@ApiModelProperty(value = "0不共享 1共享")
	private Integer isShare;

	@ApiModelProperty(value = "创建时间")
	private Date createTime;

	@ApiModelProperty(value = "0未删除 1已删除")
	private Integer delFlag;

	@ApiModelProperty(value = "是否自动同步  0不同步 1同步")
	private Integer issync;

	@ApiModelProperty(value = "同步方式  1 直接同步 2主从账号")
	private Integer syncType;

//	/**
//	 * 已用空间
//	 * @return
//	 */
//	public BigDecimal getUseDiskSize(){
//		if(diskSize!=null){
//			return diskSize.subtract(freeDiskSize).setScale(2, BigDecimal.ROUND_HALF_UP);
//		}
//		return null;
//	}

}